# from selenium import webdriver
#
# options = webdriver.ChromeOptions()
# options.add_argument('-headless')
#
# #打开浏览器,访问360搜索
# driver = webdriver.Chrome(options = options)
# driver.get('http://www.so.com/')
# #输出页面标题
# print(driver.title)
#
#
# #退出浏览器
# driver.quit()
from selenium import webdriver

options = webdriver.ChromeOptions()
options.add_argument('-headless')
driver = webdriver.Chrome(options=options)
driver.get('http://www.so.com/')
print(driver.title)
driver.quit()
